package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author Hzy
 * @version 1.0
 * @date 2025/2/18  19:39
 * @description
 * @since jdk11
 */
@Data
@ApiModel("产品")
public class Products {
    @ApiModelProperty("产品id，修改时不允许为空！")
    int id;
    @ApiModelProperty("产品类型")
    int type;
    @ApiModelProperty("产品单位")
    String unit;
    @ApiModelProperty("产品编码")
    String code;
    @ApiModelProperty("产品名称")
    String name;
    @ApiModelProperty("封面图")
    String imageUrl;
    @ApiModelProperty("型号")
    String model;
    @ApiModelProperty("产品分类编码")
    String category_code;
    @ApiModelProperty("产品分类名称")
    String category_name;
    @ApiModelProperty("规格条码")
    String specification_barcode;
    @ApiModelProperty("规格编码")
    String specification_code;
    @ApiModelProperty("品牌")
    String brand;
    @ApiModelProperty("材质")
    String material;
    @ApiModelProperty("单重")
    BigDecimal single_weight;
    @ApiModelProperty("外形尺寸")
    int dimension;
    @ApiModelProperty("产品图号")
    String product_drawing_number;
    @ApiModelProperty("工厂图号")
    String factory_drawing_number;
    @ApiModelProperty("原装图号")
    String original_drawing_number;
    @ApiModelProperty("库存")
    int stock;
    @ApiModelProperty("价格")
    BigDecimal price;
    @ApiModelProperty("排序")
    int sort_order;
    @ApiModelProperty("低库存预警值")
    int low_stock_warning;
    @ApiModelProperty("高库存预警值")
    int high_stock_warning;
    @ApiModelProperty("品牌资料")
    String brand_info;
    @ApiModelProperty("产品详情")
    String product_detail;
    @ApiModelProperty("状态")
    int status;
    @ApiModelProperty("创建时间")
    Date create_time;
    @ApiModelProperty("创建人")
    int creator;
    @ApiModelProperty("更新时间")
    Date update_time;
    @ApiModelProperty("更新人")
    int updater;
    @ApiModelProperty(hidden = true)
    boolean is_deleted;
    @ApiModelProperty("轮播图")
    List<String> banner;

    List<Map> bannerList;

    public void setBanner(List<String> banner) {
        this.banner = banner;
    }
}